/*
 * #%L
 * java model
 * %%
 * Copyright (C) 2009 - 2011 prefabware.com Stefan Isele
 * %%
 * All Rights Reserved.
 * This program is dual-licensed under the GNU General Public license
 * or a commercial license.
 * You may select to use one or the other of these licenses.
 * To obtain a commercial license please contact Stefan Isele at www.stefan-isele.de
 * Any modifications to this file must keep this entire header intact.
 * Redistribution, except as permitted by the selected license, is prohibited.
 * #L%
 */
package com.prefabware.jmodel.sample;

public class WithMutableHash {
private int value;

@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + value;
	return result;
}

@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	WithMutableHash other = (WithMutableHash) obj;
	if (value != other.value)
		return false;
	return true;
}

public int getValue() {
	return value;
}

public void setValue(int value) {
	this.value = value;
}
}
